//
// Created by nicemoe on 2021/8/30.
//

#include  <iostream>
#include "worker0.h"
const int LIM = 4;
using namespace std;

int main() {
    Waiter bob("Bob Apple",314L,5);
    Singer bev("Beverly Hills",522L,3);
    Waiter w_temp;
    Singer s_temp;

    Worker * pw[LIM] = {&bob,&bev,&w_temp,&s_temp};
    int i;
    for ( i = 0; i < LIM; ++i) {
        pw[i] -> Set();
    }
    for (i = 0; i < LIM ; ++i) {
        pw[i]->Show();
        cout <<endl;
    }
    return 0;
}
